package com.business.entity.cms;


import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.business.entity.IdEntity;

@Entity
public class Channel extends IdEntity {
	private String name;//栏目名称
	private String descr;//栏目描述
	private String accessPath;//访问路径
	private Channel fatherChanner;
	
	@ManyToOne( cascade = {CascadeType.PERSIST, CascadeType.MERGE},targetEntity=Channel.class )
    @JoinColumn(name="FATHER_ID")
	public Channel getFatherChanner() {
		return fatherChanner;
	}
	public void setFatherChanner(Channel fatherChanner) {
		this.fatherChanner = fatherChanner;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescr() {
		return descr;
	}
	public void setDescr(String descr) {
		this.descr = descr;
	}
	public String getAccessPath() {
		return accessPath;
	}
	public void setAccessPath(String accessPath) {
		this.accessPath = accessPath;
	}
	
}
